<div id="list">
	<h3>大牛列表</h3>
	<div class="layui-row" style="margin-left: 30px;position: relative;">
		<div class="layui-col-md6 layui-col-xs6 " ng-repeat="x in shopList" style="margin-bottom: 30px;" ng-click="moreList(x.mtLogin,x.name,x,0)">
			<div class="box">

				<div class="layui-row">
					<div class="layui-col-md3 layui-col-xs3" >
						<div class="layui-col-md5 layui-col-xs5">
							<img alt="" class="tx" ng-src="{{x.danielIcon || 'img/timg.png'}}" />
						</div>
						<div class="layui-col-md7 layui-col-xs7">
							<p style="color: #000000;" class="textCenter">{{x.name}}</p>
						</div>
					</div>
					<div class="layui-col-md3 layui-col-xs3" ng-click="moreList(x.mtLogin,x.name,x,0)">
						<div class="layui-col-md6 layui-col-xs6">
							<p class="textRight">总收益($)</p>
						</div>
						<div class="layui-col-md6 layui-col-xs6">
							<p ng-if="x.totalProfit>0" class="green textCenter">{{x.totalProfit |number:2 }}</p>
							<p ng-if="x.totalProfit<0" class="red textCenter">{{x.totalProfit |number:2 }}</p>
							<p ng-if="x.totalProfit==0" class="yellow textCenter">{{x.totalProfit |number:2 }}</p>
						</div>
					</div>
					<div class="layui-col-md3 layui-col-xs3" ng-click="moreList(x.mtLogin,x.name,x,0)">
						<div class="layui-col-md6 layui-col-xs6">
							<p class="textRight">上月盈利($)</p>
						</div>
						<div class="layui-col-md6 layui-col-xs6">
							<p ng-if="x.lastMonthProfit>0" class="green textCenter">{{x.lastMonthProfit ||0 |number:2 }}</p>
							<p ng-if="x.lastMonthProfit<0" class="red textCenter">{{x.lastMonthProfit ||0 |number:2 }}</p>
							<p ng-if="x.lastMonthProfit==0" class="yellow textCenter">{{x.lastMonthProfit ||0 |number:2 }}</p>
						</div>
					</div>
					<!--<div class="layui-col-md3 layui-col-xs3">
						<button class="gen" ng-click="changeSet(0,x.mtLogin)" ng-if="x.relation==0">更改交易设置</button>
						<button class="change" ng-click="changeSet(1,x.mtLogin)" ng-if="x.relation==1" ng-disabled="dontGen">跟单交易 </button>
					</div>-->

				</div>
			</div>
		</div>
		<!--<nav aria-label="Page navigation" id="page">
			<ul class="pagination">
				<li ng-init="shop.listMore=1">
					<a href="javascript:;"  ng-class="{activePage:shop.listMore==begin}"  ng-click="begain(begin)">
						<span >&laquo;</span>
					</a>
				</li>
				
				<li ng-repeat="x in numArr">
					<a href="javascript:;" ng-class="{activePage:shop.listMore==x}" ng-click="changePag(x)" >{{x}}</a>
				</li>
				
				<li>
					<a href="javascript:;" ng-class="{activePage:shop.listMore==after}"  ng-click="after(after)">
						<span >&raquo;</span>
					</a>
				</li>

			</ul>
		</nav>-->
		
		<div class="pagination-holder clearfix" style="position: absolute;right: 20px;bottom: -20px;">

			<div id="light-pagination" class="pagination"></div>

		</div>
	</div>

	<div id="genSet" style="display: none;">
		<div class="box">
			<div class="textBox">
				<label>分配跟单比例范围:</label>
				<a href="javascript:;" ng-click="setCount()">{{maxmoney ||0}}%</a>
			</div>
			<p class="tishi">此设置将于下次交易生效</p>
			<!--<div class="explain">
			<span class="blue">跟单手数计算公式为：</span>
		 	<span></span>
		 </div>-->
			<div id="infoGenKnow">
				<p>跟单手数计算公式为：</p>
				<span>信号源下单手数=</span><span style="width: 8em;display: inline-block;    position: relative;top: 1.7em;margin: 0 0.5em;">信号源下单手数<hr style="border-color: gray;"> 信号源账户净值</span>
				<span>×资金比例×  跟单账户净值</span>
				<br />
				<br />
				<br />
				<p style="margin-bottom: 20px;">举例：</p>
				<span>1.如果策略账户净值1万美金下一手，您的账户净值是1    	   千美金，那么当设置为100%时下0.1手，设置为80%  	   时0.08手，以此类推.</span>
				<br />
				<span>2.如果策略账户净值1万美金下1手，您的账户净值是50   	   美金，那么当设置为100%时应该下0.005手，但由于             	   交易平台支持最小下单手数为0.01手，所以您将不下单。</span>
				<br />
				<span>3.如果一个策略的年化收益为100%，资金撤回为20%   	   那么当设置为50%时相当于该策略对你的账户来说， 	   年化收益为50%，资金撤回为10%。</span>
				<div class="butns">
					<button class="layui-btn layui-btn-normal" ng-click="sureGoShop(0)" ng-if="gendan">立即跟单</button>
					<button class="layui-btn layui-btn-normal" ng-click="sureGoShop(1)" ng-if="xiugai">确认修改</button>

					<button class="layui-btn layui-btn-normal" ng-click="canselList()" ng-disabled="noCansel">取消跟单</button>
				</div>
			</div>

		</div>
	</div>

	<div id="moreGen" style="display: none;">
		<span>请输入跟单比例：</span>
		<input type="number" id="myNumber" ng-value="maxmoney" /><span>%</span>
		<p id="changeMoney">${{newMoney}}</p>
		<p class="red">(此设置将于下次交易生效)</p>
		<div class="butns">
			<button class="layui-btn layui-btn-normal" style="margin-right:20px ;" ng-click="sureNumber()">确认</button>
			<button class="layui-btn layui-btn-normal" ng-click="canselNumber()">取消</button>
		</div>
	</div>
	<div id="canselList" style="display: none;">
		<div class="wrap">
			<p>如果您的信号源的当前持仓中还有跟随信号源的做单，取 跟单前请选择以下的方式进行处理：
			</p>
			<div class="textBox">
				<span>立即平仓正在跟随的订单并解除跟单</span>
				<div class="chooseYes choose">
					<img src="img/gou.png" />
				</div>

			</div>
			<div class="textBox">
				<span>与信号源同步平仓已跟随的订单并解除跟单</span>
				<div class="chooseNo choose">
					<img src="img/gou.png" />
				</div>

			</div>
			<div class="butns">
				<button class="layui-btn layui-btn-normal" ng-click="canselGen()">确认</button>
				<button class="layui-btn layui-btn-normal" ng-click="canselGenPage()">取消</button>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
		var appElement = document.querySelector('[ng-controller=moreController]');

		var $scope = angular.element(appElement).scope();
		$('#light-pagination').pagination({
			pages: $scope.shop.total,
			cssStyle: 'light-theme',
			ellipsePageSet: true,
			onPageClick: function(pageNumber, event) {
				$scope.changePag(pageNumber)
			},
			onInit:function(){
				$scope.changePag(1)
			}

		});
		//			alertNew("跟单设置", 700, 560, $("#genSet"));
	</script>